﻿using System;
using Microsoft.Phone.Tasks;

namespace Wp7Tools.Services.Tasks {
	public class ShareTask : IShareTask {
		public static IShareTask Default { get; set; }

		static ShareTask() {
			Default = new ShareTask();
		}

		public void ShareLink(Uri link, string title, string message) {
			ShareLinkTask task = new ShareLinkTask();
			task.LinkUri = link;
			task.Message = message;
			task.Title = title;
			task.Show();
		}

		public void ShareStatus(string status) {
			ShareStatusTask task = new ShareStatusTask();
			task.Status = status;
			task.Show();
		}
	}
}